package com.stylefeng.guns.modular.pay.dto;



import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value="支付实体对象",description="支付")
public class ApiPayParams {
	private String memberId;	//会员id
	private String amount;		//支付金额
	private String bankId;		//银行编码
	
	
	
	@ApiModelProperty(value="会员id",name="memberId",required=true)
	@NotEmpty(message="memberId参数不能为空")
	public String getMemberId() {
		return memberId;
	}
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	@ApiModelProperty(value="金额",name="amount",required=true)
	@NotEmpty(message="amount参数不能为空")
	@Pattern(regexp="^(([1-9]{1}\\d*)|([0]{1}))(\\.(\\d){0,2})?$",message="金额格式错误")
	public String getAmount() {
		return amount;
	}
	
	public void setAmount(String amount) {
		this.amount = amount;
	}
	

	@ApiModelProperty(value="支付卡Id",name="bankId",required=true)
	@NotEmpty(message="支付卡参数不能为空")
	public String getBankId() {
		return bankId;
	}
	public void setBankId(String bankId) {
		this.bankId = bankId;
	}
}
